<template>
    <div class="panel-body">
        <h2>我是About的内容</h2>
    </div>
</template>
<script>
export default {
    name: "About",
    data(){
        return {
        }
    },
    methods:{
    },
    computed:{
    },
    destroyed(){
        console.log('about 组件将被销毁');
    },
    mounted(){
        console.log('about 组件将挂载');
    },
    beforeRouteEnter(to, from, next){
        if (localStorage.getItem('school') === 'atguigu'){
            next()
        }else {
            alert('学校名不对，无权限')
        }
    }
    // beforeRouteLeave(to, from, next){
    //     console.log('beforeRouteLeave');
    //     next()
    // }



}
</script>

<style>
</style>
